var hanoi = function(n,a,b,c){
    if(n > 0){
        hanoi(n-1,a,c,b)
        console.log(`将${n}从${a}移到${c}`)
        hanoi(n-1,b,a,c)
    }
}
hanoi(3,'A','B','C')
// 十进制转为二进制字符串
console.log(value = parseInt(8).toString(2),typeof value)
